package com.xyf.TestTimeDo.test1;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class Doit2 {


@Scheduled(cron="0 * * * * ?")	
public void zhixing() {
	System.out.println("执行中定时");
}
@Scheduled(fixedRate=1000*5)
public void zhixing2() {
	System.out.println("执行间隔");
}
	
}
